package com.zrrd.learn.chapter08面向对象.pattern.proxy;

/**
 * ProxyPatternDemo
 *
 * @author wrn
 * @version 1.0
 * @date 2023/8/4 10:45
 */

public class ProxyPatternDemo {

    public static void main(String[] args) {

        Reallmage r1 = new Reallmage();
        r1.setFileName("小艾");

        ProxyImage i1 = new ProxyImage(r1);
        i1.setFileName("111");
        r1.loadFromDisk();
        i1.display();

    }

}
